import request from '../utils/Request';

const userApi={
    // 条件查询带分页
    selectByCondition(pageNo,pageSize,searchuser){
        return request({
            url:'/user/user/loadList',
            method:'post',
            params:{
                pageNo,
                pageSize,
            },
            data:searchuser
        })
    },
    adduser(user){
        return request({
            url:'/user/user/addUser',
            method:'post',
            data:user
        })
    },
    updateuser(user){
        return request({
            url:'/user/user/updateUser',
            method:'put',
            data:user
        })
    },
    deleteById(id){
        return request({
            url:`/user/user/deleteUser`,
            method:'delete',
            data:id
        })
    },
}


export default userApi
